{block name="title" prepend}{$LNG.lm_overview}{/block}
{block name="script" append}
<script type="text/javascript">
buildEndTime	= {$buildtime};
techEndTime		= {$techtime};
</script>
{/block}
{block name="content"}
<table class="table519" width="666px" style="width:666px !important; max-width:666px !important;">
<tr>
		<th colspan="3">{$LNG.ov_events}</th>
	</tr>
	{foreach $fleets as $index => $fleet}
	<tr>
		<td id="fleettime_{$index}" class="fleets" data-fleet-end-time="{$fleet.returntime}" data-fleet-time="{$fleet.resttime}">-</td>
		<td colspan="2">{$fleet.text}</td>
	</tr>
	{/foreach}
	<tr>
	{if $is_news}
	<tr>
		<td>{$LNG.ov_news}</td><td colspan="2">{$news}</td>
	</tr>
	{/if}
    <tr>
		<td>Игроков онлайн</td><td colspan="2">{$online_users}</td>
	</tr
	><tr>
		<td style="white-space: nowrap;">{$LNG.ov_admins_online}</td>
		<td colspan="2">{foreach $AdminsOnline as $ID => $Name}{if !$Name@first}&nbsp;&bull;&nbsp;{/if}<a href="#" onclick="return Dialog.PM({$ID})">{$Name}</a>{foreachelse}{$LNG.ov_no_admins_online}{/foreach}</td>
	</tr>
	{if !empty($chatOnline)}
	<tr>
		<td style="white-space: nowrap;">{$LNG.ov_chat_online}</td>
		<td colspan="2" style="width:400px;">{foreach $chatOnline as $Name}{if !$Name@first},&nbsp;{/if}<a href="?page=chat">{$Name}</a>{/foreach}</td>
	</tr>
	{/if}
	{if $Teamspeak}
	<tr>
		<td>{$LNG.ov_teamspeak}</td><td colspan="2">{$Teamspeak}</td>
	</tr>
    
	{/if}
	<tr>
		<th colspan="3"><a href="#" onclick="return Dialog.PlanetAction();" title="{$LNG.ov_planetmenu}">{$LNG.ov_planet} "<span class="planetname">{$planetname}</span>"</a> ({$username})</th>
	</tr>
    <tr>
		<td colspan="3">
        	<div id="owerwiv_planet" style="background-image:url({$dpath}planeten/{$planetimage}.jpg);">
            {if $Moon}
            	<a href="game.php?page=overview&amp;cp={$Moon.id}&amp;re=0" title="{$Moon.name}" class="owerwiv_planet moon" style="right:0; top:0;">
                	<img src="{$dpath}planeten/mond_.jpg" height="50" width="50" alt="{$Moon.name} ({$LNG.fcm_moon})">
                    <br />{$Moon.name}
            	</a>
            {/if}
            {if $Moon_type == 3}
            	<a href="game.php?page=kollaider" class="owerwiv_planet moon" style="right:0; font-size:11px; color:#09F; text-decoration:blink; font-weight:bold; top:0;">Коллайдер</a>
            {/if}
                <div class="owerwiv_planet build" style="left:0; top:30px;">
                    <span>{$LNG.lm_research}:</span>
                    {$tech}
                 </div>
                <div class="owerwiv_planet build" style="left:0; top:115px;">
                    <span>{$LNG.lm_buildings}:</span>
                    {$build}
                 </div>
                 <div class="owerwiv_planet build" style="left:0; top:200px;">
                    <span>{$LNG.lm_shipshard}:</span>
                    <div id="bx" class="z"></div>
                    <table style="width:760px; display:none; width:0; height:0; overflow:hidden;">
                    	<tr>
                            <td>
                                <form action="game.php?page=shipyard" method="post">
                                    <input type="hidden" name="action" value="delete">
                                    <select name="auftr[]" id="auftr" size="10" multiple><option>&nbsp;</option></select><br><br>{$LNG.bd_cancel_warning}<br><input type="submit" value="{$LNG.bd_cancel_send}">
                                </form>
                            </td>
                    	</tr>
                 	</table>
                </div>
                <div class="owerwiv_planet" style="right:0; bottom:0; padding:0;">
                 	<table>
                    	<tr>
                            <td>{$LNG.ov_diameter}</td>
                            <td colspan="2">{$planet_diameter} {$LNG.ov_distance_unit} (<a title="{$LNG.ov_developed_fields}">{$planet_field_current}</a> / <a title="{$LNG.ov_max_developed_fields}">{$planet_field_max}</a> {$LNG.ov_fields})</td>
                        </tr>
                        <tr>
                            <td>{$LNG.ov_temperature}</td>
                            <td colspan="2">{$LNG.ov_aprox} {$planet_temp_min}{$LNG.ov_temp_unit} {$LNG.ov_to} {$planet_temp_max}{$LNG.ov_temp_unit}</td>
                        </tr>
                        <tr>
                            <td>{$LNG.ov_position}</td>
                            <td colspan="2"><a href="game.php?page=galaxy&amp;galaxy={$galaxy}&amp;system={$system}">[{$galaxy}:{$system}:{$planet}]</a></td>
                        </tr>
                        <tr>
                            <td>{$LNG.ov_points}</td>
                            <td colspan="2">{$rankInfo}</td>
                        </tr>
                    </table>
                </div>
            </div>
        </td>
	</tr>
	{if $ref_active}
	<tr>
		<th colspan="3">{$LNG.ov_reflink} (<span style="color:#F90;">Бонус {$ref_bonus|number} Темной материи + 3 дня премиум аккаунта</span>)</th>
	</tr>
	<tr>
		<td colspan="3"><input type="text" value="{$path}index.php?ref={$userid}" readonly="readonly" style="width:450px;"></td>
	</tr>
	{foreach $RefLinks as $RefID => $RefLink}
	<tr>
		<td colspan="2"><a href="#" onclick="return Dialog.Playercard({$RefID}, '{$RefLink.username}');">{$RefLink.username}</a></td>
		<td>{{$RefLink.points|number}} / {$ref_minpoints|number}</td>
	</tr>
	{foreachelse}
	<tr>
		<td colspan="3">{$LNG.ov_noreflink}</td>
	</tr>
	{/foreach}
	{/if}
</table>
<script type="text/javascript">
data			= {$BuildList|json};
bd_operating	= '{$LNG.bd_operating}';
bd_available	= '{$LNG.bd_available}';
</script>
{/block}